import request from "@/utils/request.js";
//密码登录
export function Login(data) {
  return request({
    url: "/company/password_login",
    method: "post",
    data,
  });
}
//验证码登录
export function CaptchaLogin(data) {
  return request({
    url: "/company/captcha_login",
    method: "post",
    data,
  });
}

//

//短信发送
export function SmsSend(data) {
  return request({
    url: "/sms/send",
    method: "post",
    data,
  });
}

//注册
export function Register(data) {
  return request({
    url: "/company/register",
    method: "post",
    data,
  });
}

//退出登录
export function Logout(data) {
  return request({
    url: "/company/logout",
    method: "post",
    data,
  });
}

//企业基础信息 company/info
export function CompanyInfo(params) {
  return request({
    url: "/company/info",
    method: "get",
    params: params,
  });
}

//验证旧手机号码 company/check_old_mobile

export function CheckOldMobile(data) {
  return request({
    url: "/company/check_old_mobile",
    method: "post",
    data,
  });
}


//修改手机号
export function ChangeMobile(data) {
  return request({
    url: "/company/change_mobile",
    method: "post",
    data,
  });
}
